package jmu.edu.yjc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import jmu.edu.yjc.domain.ResponseResult;
import jmu.edu.yjc.domain.dto.RoleDto;
import jmu.edu.yjc.domain.entity.Role;

import java.util.List;


/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2023-01-19 16:44:14
 */
public interface RoleService extends IService<Role> {
    List<String> selectRoleKeyByUserId(Long userId);

    ResponseResult listRole(String roleName, String status, Integer pageNum, Integer pageSize);

    ResponseResult addRole(RoleDto role);

    void updateRole(RoleDto role);

    ResponseResult listAllRole();
}

